package com.example.iccil.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.iccil.model.entity.UserThirdParty;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author wujianxin
* @description 针对表【user_third_party】的数据库操作Mapper
* @createDate 2025-07-10 11:28:39
* @Entity com.example.iccil.domain.UserThirdParty
*/
public interface UserThirdPartyMapper extends BaseMapper<UserThirdParty> {

    @Select("select isBind from user_third_party where uuid = #{encryptUUID} and loginType = #{source}")
    UserThirdParty checkBindStatus(@Param("encryptUUID") String encryptUUID, @Param("source") String source);

    @Select("select userId from user_third_party where uuid = #{encryptUUID} and loginType = #{source}")
    UserThirdParty getUserIdByUUID(@Param("encryptUUID") String encryptUUID, @Param("source") String source);
}




